﻿using System;
using System.Data.Linq.Mapping;

namespace vurfu.DataContracts
{
    [Table(Name = "dbo.Events")]
    public class EventRecord
    {
        [Column(Name = "EventId", DbType = "UniqueIdentifier NOT NULL", IsPrimaryKey = true)]
        public string EventId { get; set; }

        [Column(Name = "Author", DbType = "UniqueIdentifier NOT NULL", CanBeNull = false)]
        public string Author { get; set; }

        [Column(Name = "EventType", DbType = "UniqueIdentifier NOT NULL", CanBeNull = false)]
        public string Type { get; set; }

        [Column(Name = "Title", DbType = "NVarChar(MAX) NOT NULL", CanBeNull = false)]
        public string Title { get; set; }

        [Column(Name = "Description", DbType = "NVarChar(MAX) NOT NULL", CanBeNull = false)]
        public string Description { get; set; }

        [Column(Name = "Place", DbType = "UniqueIdentifier NOT NULL", CanBeNull = false)]
        public string Place { get; set; }

        [Column(Name = "DateTime", DbType = "DateTime NOT NULL")]
        public DateTime DateTime { get; set; }

        [Column(Name = "CreationTime", DbType = "DateTime NOT NULL")]
        public DateTime CreationTime { get; set; }

        [Column(Name = "Ratings", DbType = "UniqueIdentifier NOT NULL", CanBeNull = false)]
        public string Ratings { get; set; }
    }
}